<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统设置 - 二手图书交易平台</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
</head>
<body class="bg-gray-50 p-6">
    <div class="space-y-6">
        <!-- 页面标题 -->
        <div class="flex justify-between items-center">
            <h1 class="text-2xl font-bold text-gray-900">系统设置</h1>
        </div>

        <!-- 设置卡片 -->
        <div class="grid grid-cols-3 gap-6">
            <!-- 公告管理 -->
            <div class="bg-white p-6 rounded-lg shadow">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-lg font-medium text-gray-900">公告管理</h2>
                    <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
                        <i class="fas fa-plus mr-2"></i>发布公告
                    </button>
                </div>
                <div class="space-y-4">
                    <div class="border rounded-lg p-4">
                        <div class="flex justify-between items-start mb-2">
                            <div class="text-sm font-medium text-gray-900">平台维护通知</div>
                            <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">置顶</span>
                        </div>
                        <p class="text-sm text-gray-600 mb-2">系统将于9月15日凌晨2:00-4:00进行例行维护升级...</p>
                        <div class="flex justify-between items-center text-xs text-gray-500">
                            <span>2023-09-10 18:30</span>
                            <div class="space-x-2">
                                <button class="text-blue-600 hover:text-blue-900">编辑</button>
                                <button class="text-red-600 hover:text-red-900">删除</button>
                            </div>
                        </div>
                    </div>
                    <div class="border rounded-lg p-4">
                        <div class="flex justify-between items-start mb-2">
                            <div class="text-sm font-medium text-gray-900">国庆节放假安排</div>
                            <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">已发布</span>
                        </div>
                        <p class="text-sm text-gray-600 mb-2">10月1日至7日期间，平台交易功能暂停服务...</p>
                        <div class="flex justify-between items-center text-xs text-gray-500">
                            <span>2023-09-08 10:00</span>
                            <div class="space-x-2">
                                <button class="text-blue-600 hover:text-blue-900">编辑</button>
                                <button class="text-red-600 hover:text-red-900">删除</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 黑词库维护 -->
            <div class="bg-white p-6 rounded-lg shadow">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-lg font-medium text-gray-900">敏感词管理</h2>
                    <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
                        <i class="fas fa-plus mr-2"></i>添加规则
                    </button>
                </div>
                <div class="space-y-4">
                    <div class="relative">
                        <input type="text" placeholder="搜索敏感词..." class="pl-10 pr-4 py-2 border rounded-lg w-full">
                        <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
                    </div>
                    <div class="border rounded-lg divide-y">
                        <div class="p-4">
                            <div class="flex justify-between items-start mb-2">
                                <div class="text-sm font-medium text-gray-900">政治敏感词</div>
                                <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">高风险</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">正则表达式：/^(政治|敏感).*/</p>
                            <div class="flex justify-between items-center text-xs text-gray-500">
                                <span>更新时间：2023-09-10</span>
                                <div class="space-x-2">
                                    <button class="text-blue-600 hover:text-blue-900">编辑</button>
                                    <button class="text-red-600 hover:text-red-900">删除</button>
                                </div>
                            </div>
                        </div>
                        <div class="p-4">
                            <div class="flex justify-between items-start mb-2">
                                <div class="text-sm font-medium text-gray-900">广告信息</div>
                                <span class="px-2 py-1 text-xs rounded-full bg-yellow-100 text-yellow-800">中风险</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">正则表达式：/(微信|电话)：\d{11}/</p>
                            <div class="flex justify-between items-center text-xs text-gray-500">
                                <span>更新时间：2023-09-09</span>
                                <div class="space-x-2">
                                    <button class="text-blue-600 hover:text-blue-900">编辑</button>
                                    <button class="text-red-600 hover:text-red-900">删除</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 日志审计 -->
            <div class="bg-white p-6 rounded-lg shadow">
                <div class="flex items-center justify-between mb-4">
                    <h2 class="text-lg font-medium text-gray-900">操作日志</h2>
                    <button class="bg-blue-600 text-white px-4 py-2 rounded-lg hover:bg-blue-700">
                        <i class="fas fa-download mr-2"></i>导出日志
                    </button>
                </div>
                <div class="space-y-4">
                    <div class="flex space-x-4">
                        <select class="border rounded-lg px-4 py-2 flex-1">
                            <option>所有操作类型</option>
                            <option>用户管理</option>
                            <option>图书审核</option>
                            <option>交易处理</option>
                            <option>系统设置</option>
                        </select>
                        <input type="date" class="border rounded-lg px-4 py-2">
                    </div>
                    <div class="border rounded-lg divide-y">
                        <div class="p-4">
                            <div class="flex justify-between items-start mb-2">
                                <div class="text-sm font-medium text-gray-900">审核图书信息</div>
                                <span class="px-2 py-1 text-xs rounded-full bg-green-100 text-green-800">通过</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">操作人：张三（内容审核员）</p>
                            <div class="flex justify-between items-center text-xs text-gray-500">
                                <span>2023-09-10 15:30:24</span>
                                <button class="text-blue-600 hover:text-blue-900">详情</button>
                            </div>
                        </div>
                        <div class="p-4">
                            <div class="flex justify-between items-start mb-2">
                                <div class="text-sm font-medium text-gray-900">处理用户举报</div>
                                <span class="px-2 py-1 text-xs rounded-full bg-red-100 text-red-800">封禁账号</span>
                            </div>
                            <p class="text-sm text-gray-600 mb-2">操作人：李四（客服主管）</p>
                            <div class="flex justify-between items-center text-xs text-gray-500">
                                <span>2023-09-10 14:20:15</span>
                                <button class="text-blue-600 hover:text-blue-900">详情</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>